#include "GameEngine.h"


GameEngine::GameEngine(void)
{

}
void GameEngine::setMapSize(unsigned int xn, unsigned int yn)
{
	 x=xn;
	 y=yn;
}
void GameEngine::setMapTiles(unsigned int number)
{
	tiles=number;
};
void GameEngine::createBoomsTable()
{
	booms=new boom[x*y];
}
void GameEngine::createMapTable()
{
	map=new tile[x*y];
}
boom GameEngine::getFromBoomsXY(unsigned int xx, unsigned int yy)
{
	return booms[x*y+y-1];
}
tile GameEngine::getFromMapXY(unsigned int xx, unsigned int yy)
{
	return map[x*y+y-1];
}
GameEngine::~GameEngine(void)
{
	delete map;
	delete booms;
};
void GameEngine::loadMapFile(char * filename)
{
}
bool GameEngine::getOwnPlayerState(char number)
{
	return players[number].returnOwnPlayer();
}